package com.Hsu.demo.facade;

/**
 * @author Hsu琛君珩
 * @ClassName:FacadePattern
 * @date 2023-12-22
 * @apiNote
 * @Version: v1.0
 */

public class FacadePattern {
    HallLight hallLight=new HallLight();
    LivingLight livingLight=new LivingLight();
    DiningLight diningLight=new DiningLight();
    public void lightOn(){
        hallLight.on();
        livingLight.on();
        diningLight.on();
    }

    public void lightOff(){
        hallLight.off();
        livingLight.off();
        diningLight.off();
    }
}
